﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTVeterinariaServices.Dominio;
using System.ServiceModel.Web;

namespace RESTVeterinariaServices
{
    [ServiceContract]
    public interface IPacienteService
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Pacientes", ResponseFormat = WebMessageFormat.Json)]
        Paciente CrearPaciente(Paciente PacienteACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Pacientes/{IdCliente}", ResponseFormat = WebMessageFormat.Json)]
        List<Paciente> ObtenerPacientesXCliente(string IdCliente);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Pacientes/{IdCliente}/{IdPaciente}", ResponseFormat = WebMessageFormat.Json)]
        Paciente ObtenerPaciente(string IdCliente, string IdPaciente);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Pacientes", ResponseFormat = WebMessageFormat.Json)]
        Paciente ModificarPaciente(Paciente PacienteAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Pacientes/{IdPaciente}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarPaciente(string IdPaciente);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Pacientes", ResponseFormat = WebMessageFormat.Json)]
        List<Paciente> ListarTodos();
    }
}
